negotiator
Class Global

java.lang.Object
  extended by negotiator.Global

public class Global
extends java.lang.Object

Overview of global variables used throughout the application.

Author:
dmytro

Field Summary
static java.lang.String AGENT_REPOSITORY
          Path to agent repository
static java.lang.String DOMAIN_REPOSITORY
          Path to domain repository
static java.lang.String logPrefix
           
static java.lang.String logPreset
           
static java.lang.String PROTOCOL_REPOSITORY
          Path to protocol repository
 
Constructor Summary
Global()
           
 
Method Summary
static Protocol createProtocolInstance(ProtocolRepItem protRepItem, AgentRepItem[] agentRepItems, ProfileRepItem[] profileRepItems, java.util.HashMap<AgentParameterVariable,AgentParamValue>[] agentParams)
           
static Protocol createProtocolInstance(ProtocolRepItem protRepItem, AgentRepItem[] agentRepItems, ProfileRepItem[] profileRepItems, java.util.HashMap<AgentParameterVariable,AgentParamValue>[] agentParams, java.lang.ClassLoader classLoader)
           
static java.lang.String getAgentDescription(Agent agent)
          Gives a useful agent name.
static AgentsLoader getAgentsLoader()
           
static java.lang.String getBinaryRoot()
           
static java.lang.String getCurrentTime()
           
static java.lang.String getDistributedOutcomesFileName()
           
static java.lang.String getExtensiveOutcomesFileName()
           
static java.lang.String getFileNameWithoutExtension(java.lang.String fileName)
           
static java.lang.String getLocalDirName()
           
static java.lang.String getOQMOutcomesFileName()
           
static java.lang.String getOutcomesFileName()
           
static java.lang.Class<Protocol> getProtocolClass(ProtocolRepItem protRepItem)
           
static java.lang.Class<Protocol> getProtocolClass(ProtocolRepItem protRepItem, java.lang.ClassLoader loader)
           
static java.lang.String getTournamentOutcomeFileName()
           
static boolean isJar()
           
static Agent loadAgent(java.lang.String agentClassName)
           
static Agent loadAgent(java.lang.String agentClassName, java.lang.String variables)
           
static void setAgentsLoader(AgentsLoader agentsLoader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOMAIN_REPOSITORY

public static final java.lang.String DOMAIN_REPOSITORY
Path to domain repository

See Also:
Constant Field Values

AGENT_REPOSITORY

public static final java.lang.String AGENT_REPOSITORY
Path to agent repository

See Also:
Constant Field Values

PROTOCOL_REPOSITORY

public static final java.lang.String PROTOCOL_REPOSITORY
Path to protocol repository

See Also:
Constant Field Values

logPrefix

public static java.lang.String logPrefix

logPreset

public static java.lang.String logPreset
Constructor Detail

Global

public Global()
Method Detail

getCurrentTime

public static java.lang.String getCurrentTime()

getLocalDirName

public static java.lang.String getLocalDirName()

getFileNameWithoutExtension

public static java.lang.String getFileNameWithoutExtension(java.lang.String fileName)

getProtocolClass

public static java.lang.Class<Protocol> getProtocolClass(ProtocolRepItem protRepItem)
                                                  throws java.lang.Exception
Throws:
java.lang.Exception

getProtocolClass

public static java.lang.Class<Protocol> getProtocolClass(ProtocolRepItem protRepItem,
                                                         java.lang.ClassLoader loader)
                                                  throws java.lang.Exception
Throws:
java.lang.Exception

createProtocolInstance

public static Protocol createProtocolInstance(ProtocolRepItem protRepItem,
                                              AgentRepItem[] agentRepItems,
                                              ProfileRepItem[] profileRepItems,
                                              java.util.HashMap<AgentParameterVariable,AgentParamValue>[] agentParams)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

createProtocolInstance

public static Protocol createProtocolInstance(ProtocolRepItem protRepItem,
                                              AgentRepItem[] agentRepItems,
                                              ProfileRepItem[] profileRepItems,
                                              java.util.HashMap<AgentParameterVariable,AgentParamValue>[] agentParams,
                                              java.lang.ClassLoader classLoader)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

loadAgent

public static Agent loadAgent(java.lang.String agentClassName)
                       throws java.lang.InstantiationException,
                              java.lang.IllegalAccessException,
                              java.lang.ClassNotFoundException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException

loadAgent

public static Agent loadAgent(java.lang.String agentClassName,
                              java.lang.String variables)
                       throws java.lang.InstantiationException,
                              java.lang.IllegalAccessException,
                              java.lang.ClassNotFoundException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException

getAgentDescription

public static java.lang.String getAgentDescription(Agent agent)
Gives a useful agent name.


getAgentsLoader

public static AgentsLoader getAgentsLoader()
Returns:
the agentsLoader

setAgentsLoader

public static void setAgentsLoader(AgentsLoader agentsLoader)
Parameters:
agentsLoader - the agentsLoader to set

getOutcomesFileName

public static java.lang.String getOutcomesFileName()

getDistributedOutcomesFileName

public static java.lang.String getDistributedOutcomesFileName()

getTournamentOutcomeFileName

public static java.lang.String getTournamentOutcomeFileName()

getExtensiveOutcomesFileName

public static java.lang.String getExtensiveOutcomesFileName()

getOQMOutcomesFileName

public static java.lang.String getOQMOutcomesFileName()

getBinaryRoot

public static java.lang.String getBinaryRoot()

isJar

public static boolean isJar()